# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=psqlodbc
pkgver=09.06.0410
pkgrel=1
pkgdesc="PostgreSQL ODBC driver"
url="https://www.postgresql.org"
arch="all"
license="GPL"
depends=
makedepends="postgresql-dev unixodbc-dev libtool"
subpackages=
source="https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="f129f7de1ec1dcec3d17d5d21eabb438ca9b9c1b76dd3b5571f6566460c61438a7c69bfda0057697e8669cd33ae5b8213d19e3c526c04eeb21b6632e62b761f8  psqlodbc-09.06.0410.tar.gz"
